import { WeaTools } from 'ecCom'

// 默认分享
export const getBlogShareSetListDefaultCondition = params => {
  return WeaTools.callApi('/api/blog/shareset/getBlogShareSetListDefaultCondition', 'GET', params);
}

//我的分享
export const getBlogShareSetListCondition = params => {
  return WeaTools.callApi('/api/blog/shareset/getBlogShareSetListCondition', 'GET', params);
}

//我的分享添加规则
export const getBlogShareSetAddCondition = params => {
  return WeaTools.callApi('/api/blog/shareset/getBlogShareSetAddCondition', 'GET', params);
}

//我的分享编辑规则
export const getBlogShareSetEditCondition = params => {
  return WeaTools.callApi('/api/blog/shareset/getBlogShareSetEditCondition', 'GET', params);
}

//分享规则保存，删除
export const operateBlogShareSet = params => {
  return WeaTools.callApi('/api/blog/shareset/operateBlogShareSet', 'POST', params);
}
